.class public Lcom/xingbook/park/fragment/HomeTodayFragment;
.super Lcom/xingbook/park/fragment/BaseFragment;

# interfaces
.implements Lcom/xingbook/park/fragment/r;


# static fields
.field public static a:J


# instance fields
.field b:Z

.field private c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

.field private d:Lcom/xingbook/park/a/p;

.field private e:Ljava/util/ArrayList;

.field private f:Lcom/xingbook/park/fragment/q;

.field private g:Lcom/xingbook/park/ui/be;

.field private h:Lcom/xingbook/xingbook/c/d;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const-wide/16 v0, 0x0

    sput-wide v0, Lcom/xingbook/park/fragment/HomeTodayFragment;->a:J

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/fragment/BaseFragment;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->b:Z

    new-instance v0, Lcom/xingbook/park/fragment/q;

    invoke-direct {v0, p0}, Lcom/xingbook/park/fragment/q;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->f:Lcom/xingbook/park/fragment/q;

    new-instance v0, Lcom/xingbook/park/fragment/i;

    invoke-direct {v0, p0}, Lcom/xingbook/park/fragment/i;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->g:Lcom/xingbook/park/ui/be;

    new-instance v0, Lcom/xingbook/park/fragment/j;

    invoke-direct {v0, p0}, Lcom/xingbook/park/fragment/j;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->h:Lcom/xingbook/xingbook/c/d;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/fragment/HomeTodayFragment;)Lcom/xingbook/xingbook/c/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->h:Lcom/xingbook/xingbook/c/d;

    return-object v0
.end method

.method private a()V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/HomeActivity;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->b:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->b:Z

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->f:Lcom/xingbook/park/fragment/q;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/xingbook/park/fragment/q;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/fragment/n;

    invoke-direct {v1, p0}, Lcom/xingbook/park/fragment/n;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method private a(I)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/HomeActivity;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->b:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->b:Z

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->f:Lcom/xingbook/park/fragment/q;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/fragment/q;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/fragment/m;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/park/fragment/m;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/park/fragment/HomeTodayFragment;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/park/fragment/HomeTodayFragment;)Lcom/xingbook/park/fragment/q;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->f:Lcom/xingbook/park/fragment/q;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/park/fragment/HomeTodayFragment;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/park/fragment/HomeTodayFragment;)Lcom/xingbook/park/a/p;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->d:Lcom/xingbook/park/a/p;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/park/fragment/HomeTodayFragment;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->a()V

    return-void
.end method


# virtual methods
.method public c()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u4e3b\u754c\u9762-\u4eca\u65e5\u63a8\u8350"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public e()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->a(I)V

    return-void
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 1

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->a(I)V

    invoke-super {p0, p1}, Lcom/xingbook/park/fragment/BaseFragment;->onActivityCreated(Landroid/os/Bundle;)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->e:Ljava/util/ArrayList;

    new-instance v0, Lcom/xingbook/park/a/p;

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->g:Lcom/xingbook/park/ui/be;

    invoke-direct {v0, v1, v2}, Lcom/xingbook/park/a/p;-><init>(Landroid/app/Activity;Lcom/xingbook/park/ui/be;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->d:Lcom/xingbook/park/a/p;

    const v0, 0x7f030032

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iput-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setVerticalScrollBarEnabled(Z)V

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    new-instance v1, Lcom/xingbook/park/fragment/k;

    invoke-direct {v1, p0}, Lcom/xingbook/park/fragment/k;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnRefreshListener(Lcom/handmark/pulltorefresh/library/j;)V

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    new-instance v1, Lcom/xingbook/park/fragment/l;

    invoke-direct {v1, p0}, Lcom/xingbook/park/fragment/l;-><init>(Lcom/xingbook/park/fragment/HomeTodayFragment;)V

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnLastItemVisibleListener(Lcom/handmark/pulltorefresh/library/h;)V

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v1, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->d:Lcom/xingbook/park/a/p;

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->d:Lcom/xingbook/park/a/p;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->a(Lcom/xingbook/service/download/m;)V

    iget-object v0, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->c:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method public onDestroyView()V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/fragment/HomeTodayFragment;->d:Lcom/xingbook/park/a/p;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Lcom/xingbook/service/download/m;)V

    invoke-super {p0}, Lcom/xingbook/park/fragment/BaseFragment;->onDestroyView()V

    return-void
.end method

.method public onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/fragment/BaseFragment;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/support/v4/app/Fragment;)V

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    return-void
.end method

.method public onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/fragment/BaseFragment;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/support/v4/app/Fragment;)V

    invoke-virtual {p0}, Lcom/xingbook/park/fragment/HomeTodayFragment;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    return-void
.end method
